package com.design.design.pattern.structural.decorator.v2GoodDecorator;

/**
 * @author TomDragon
 */
public class EggDecorator extends AbstractDecorator {
    public EggDecorator(AbstractButterCake abstractButterCake) {
        super(abstractButterCake);
    }

    @Override
    protected void doSomething() {
        // do something if needed
    }

    @Override
    protected String getDesc() {
        return super.getDesc() + " 加1个鸡蛋 ";
    }

    @Override
    protected int cost() {
        return super.cost() + 1;
    }
}
